class A:
    def __init__(self,long=0,wide=0):
        self.long = long
        self.wide = wide
    def __setattr__(self,name,value):
        if name  =='square':
            self.long=value
            self.wide=value
        else :
            super().__setattr__(name,value) 
